.class Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;
.super Ljava/lang/Object;
.source "MyStationCollectionActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

.field private final synthetic val$position:I


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    iput p2, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->val$position:I

    .line 338
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 343
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;)Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;->access$2(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;)Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

    move-result-object v1

    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;)Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;)Ljava/util/List;

    move-result-object v0

    iget v2, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->val$position:I

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/teewoo/app/bus/model/collection/StationCollection;

    invoke-virtual {v0}, Lcom/teewoo/app/bus/model/collection/StationCollection;->getId()Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;->delete(Ljava/lang/Integer;)V

    .line 345
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;)Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;)Ljava/util/List;

    move-result-object v0

    iget v1, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->val$position:I

    invoke-interface {v0, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 347
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;)Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;->access$3(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;)Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->notifyDataSetChanged()V

    .line 349
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter$1;->this$1:Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;->access$0(Lcom/teewoo/app/bus/ui/MyStationCollectionActivity$MySimpleAdapter;)Lcom/teewoo/app/bus/ui/MyStationCollectionActivity;

    move-result-object v0

    const v1, 0x7f080034

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 350
    return-void
.end method
